package com.yellowpage.omc.ability.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * Partner entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "OMC_PARTNER")
public class Partner implements java.io.Serializable {

	// Fields

	private Long partnerId;
	private String partnerCode;
	private String partnerKey;
	private String name;
	private String address;
	private String contactName;
	private String contactTel;
	private String contactAddress;
	private String contactNote;
	private String techContactName;
	private String techContactTel;
	private String techContactNote;
	private String note;
	private String status;
	private Long createUser;
	private Date createTime;
	private Long lastUpdateUser;
	private Date lastUpdateTime;
	private Long LastSynchronizationUser;
	private Date LastSynchronizationTime;

	// Constructors

	/** default constructor */
	public Partner() {
	}

	/** full constructor */
	public Partner(String partnerCode, String partnerKey, String name,
			String address, String contactName, String contactTel,
			String contactAddress, String contactNote, String techContactName,
			String techContactTel, String techContactNote, String note,
			String status, Long createUser, Date createTime,
			Long lastUpdateUser, Date lastUpdateTime, Long LastSynchronizationUser, Date LastSynchronizationTime) {
		this.partnerCode = partnerCode;
		this.partnerKey = partnerKey;
		this.name = name;
		this.address = address;
		this.contactName = contactName;
		this.contactTel = contactTel;
		this.contactAddress = contactAddress;
		this.contactNote = contactNote;
		this.techContactName = techContactName;
		this.techContactTel = techContactTel;
		this.techContactNote = techContactNote;
		this.note = note;
		this.status = status;
		this.createUser = createUser;
		this.createTime = createTime;
		this.lastUpdateUser = lastUpdateUser;
		this.lastUpdateTime = lastUpdateTime;
		this.LastSynchronizationUser = LastSynchronizationUser;
		this.LastSynchronizationTime = LastSynchronizationTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "PARTNER_ID", unique = true, nullable = false, precision = 18, scale = 0)
	public Long getPartnerId() {
		return this.partnerId;
	}

	public void setPartnerId(Long partnerId) {
		this.partnerId = partnerId;
	}

	@Column(name = "PARTNER_CODE", length = 56)
	public String getPartnerCode() {
		return this.partnerCode;
	}

	public void setPartnerCode(String partnerCode) {
		this.partnerCode = partnerCode;
	}

	@Column(name = "PARTNER_KEY", length = 56)
	public String getPartnerKey() {
		return this.partnerKey;
	}

	public void setPartnerKey(String partnerKey) {
		this.partnerKey = partnerKey;
	}

	@Column(name = "NAME", length = 28)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "ADDRESS", length = 256)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "CONTACT_NAME", length = 28)
	public String getContactName() {
		return this.contactName;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	@Column(name = "CONTACT_TEL", length = 28)
	public String getContactTel() {
		return this.contactTel;
	}

	public void setContactTel(String contactTel) {
		this.contactTel = contactTel;
	}

	@Column(name = "CONTACT_ADDRESS", length = 256)
	public String getContactAddress() {
		return this.contactAddress;
	}

	public void setContactAddress(String contactAddress) {
		this.contactAddress = contactAddress;
	}

	@Column(name = "CONTACT_NOTE", length = 28)
	public String getContactNote() {
		return this.contactNote;
	}

	public void setContactNote(String contactNote) {
		this.contactNote = contactNote;
	}

	@Column(name = "TECH_CONTACT_NAME", length = 28)
	public String getTechContactName() {
		return this.techContactName;
	}

	public void setTechContactName(String techContactName) {
		this.techContactName = techContactName;
	}

	@Column(name = "TECH_CONTACT_TEL", length = 28)
	public String getTechContactTel() {
		return this.techContactTel;
	}

	public void setTechContactTel(String techContactTel) {
		this.techContactTel = techContactTel;
	}

	@Column(name = "TECH_CONTACT_NOTE", length = 28)
	public String getTechContactNote() {
		return this.techContactNote;
	}

	public void setTechContactNote(String techContactNote) {
		this.techContactNote = techContactNote;
	}

	@Column(name = "NOTE", length = 512)
	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	@Column(name = "STATUS", length = 16)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "CREATE_USER", precision = 18, scale = 0)
	public Long getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 7)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "LAST_UPDATE_USER", precision = 18, scale = 0)
	public Long getLastUpdateUser() {
		return this.lastUpdateUser;
	}

	public void setLastUpdateUser(Long lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LAST_UPDATE_TIME", length = 7)
	public Date getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	@Column(name = "LAST_SYNCHRONIZATION_USER", precision = 18, scale = 0)
	public Long getLastSynchronizationUser() {
		return LastSynchronizationUser;
	}

	public void setLastSynchronizationUser(Long lastSynchronizationUser) {
		LastSynchronizationUser = lastSynchronizationUser;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LAST_SYNCHRONIZATION_TIME", length = 7)
	public Date getLastSynchronizationTime() {
		return LastSynchronizationTime;
	}

	public void setLastSynchronizationTime(Date lastSynchronizationTime) {
		LastSynchronizationTime = lastSynchronizationTime;
	}

}